3.10.22 \(\int (b d+2 c d x)^3 (a+b x+c x^2) \, dx\)

Optimal. Leaf size=45 \[ \frac {d^3 (b+2 c x)^6}{48 c^2}-\frac {d^3 \left (b^2-4 a c\right ) (b+2 c x)^4}{32 c^2} \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {683} \begin {gather*} \frac {d^3 (b+2 c x)^6}{48 c^2}-\frac {d^3 \left (b^2-4 a c\right ) (b+2 c x)^4}{32 c^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2),x]

[Out]

-((b^2 - 4*a*c)*d^3*(b + 2*c*x)^4)/(32*c^2) + (d^3*(b + 2*c*x)^6)/(48*c^2)

Rule 683

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d +
 e*x)^m*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[2*c*d - b*e,
 0] && IGtQ[p, 0] &&  !(EqQ[m, 3] && NeQ[p, 1])

Rubi steps

\begin {align*} \int (b d+2 c d x)^3 \left (a+b x+c x^2\right ) \, dx &=\int \left (\frac {\left (-b^2+4 a c\right ) (b d+2 c d x)^3}{4 c}+\frac {(b d+2 c d x)^5}{4 c d^2}\right ) \, dx\\ &=-\frac {\left (b^2-4 a c\right ) d^3 (b+2 c x)^4}{32 c^2}+\frac {d^3 (b+2 c x)^6}{48 c^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 66, normalized size = 1.47 \begin {gather*} \frac {1}{6} d^3 x (b+c x) \left (6 a \left (b^2+2 b c x+2 c^2 x^2\right )+x \left (3 b^3+11 b^2 c x+16 b c^2 x^2+8 c^3 x^3\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2),x]

[Out]

(d^3*x*(b + c*x)*(6*a*(b^2 + 2*b*c*x + 2*c^2*x^2) + x*(3*b^3 + 11*b^2*c*x + 16*b*c^2*x^2 + 8*c^3*x^3)))/6

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (b d+2 c d x)^3 \left (a+b x+c x^2\right ) \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2),x]

[Out]

IntegrateAlgebraic[(b*d + 2*c*d*x)^3*(a + b*x + c*x^2), x]

________________________________________________________________________________________

fricas [B]  time = 0.35, size = 108, normalized size = 2.40 \begin {gather*} \frac {4}{3} x^{6} d^{3} c^{4} + 4 x^{5} d^{3} c^{3} b + \frac {9}{2} x^{4} d^{3} c^{2} b^{2} + 2 x^{4} d^{3} c^{3} a + \frac {7}{3} x^{3} d^{3} c b^{3} + 4 x^{3} d^{3} c^{2} b a + \frac {1}{2} x^{2} d^{3} b^{4} + 3 x^{2} d^{3} c b^{2} a + x d^{3} b^{3} a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a),x, algorithm="fricas")

[Out]

4/3*x^6*d^3*c^4 + 4*x^5*d^3*c^3*b + 9/2*x^4*d^3*c^2*b^2 + 2*x^4*d^3*c^3*a + 7/3*x^3*d^3*c*b^3 + 4*x^3*d^3*c^2*
b*a + 1/2*x^2*d^3*b^4 + 3*x^2*d^3*c*b^2*a + x*d^3*b^3*a

________________________________________________________________________________________

giac [A]  time = 0.21, size = 73, normalized size = 1.62 \begin {gather*} {\left (c d x^{2} + b d x\right )} a b^{2} d^{2} + \frac {1}{2} \, {\left (c d x^{2} + b d x\right )}^{2} b^{2} d + 2 \, {\left (c d x^{2} + b d x\right )}^{2} a c d + \frac {4}{3} \, {\left (c d x^{2} + b d x\right )}^{3} c \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a),x, algorithm="giac")

[Out]

(c*d*x^2 + b*d*x)*a*b^2*d^2 + 1/2*(c*d*x^2 + b*d*x)^2*b^2*d + 2*(c*d*x^2 + b*d*x)^2*a*c*d + 4/3*(c*d*x^2 + b*d
*x)^3*c

________________________________________________________________________________________

maple [B]  time = 0.04, size = 108, normalized size = 2.40 \begin {gather*} \frac {4 c^{4} d^{3} x^{6}}{3}+4 b \,c^{3} d^{3} x^{5}+a \,b^{3} d^{3} x +\frac {\left (8 c^{3} d^{3} a +18 b^{2} d^{3} c^{2}\right ) x^{4}}{4}+\frac {\left (12 b \,d^{3} c^{2} a +7 b^{3} d^{3} c \right ) x^{3}}{3}+\frac {\left (6 b^{2} d^{3} c a +b^{4} d^{3}\right ) x^{2}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*c*d*x+b*d)^3*(c*x^2+b*x+a),x)

[Out]

4/3*c^4*d^3*x^6+4*b*d^3*c^3*x^5+1/4*(8*a*c^3*d^3+18*b^2*c^2*d^3)*x^4+1/3*(12*a*b*c^2*d^3+7*b^3*c*d^3)*x^3+1/2*
(6*a*b^2*c*d^3+b^4*d^3)*x^2+b^3*d^3*a*x

________________________________________________________________________________________

maxima [B]  time = 1.40, size = 97, normalized size = 2.16 \begin {gather*} \frac {4}{3} \, c^{4} d^{3} x^{6} + 4 \, b c^{3} d^{3} x^{5} + a b^{3} d^{3} x + \frac {1}{2} \, {\left (9 \, b^{2} c^{2} + 4 \, a c^{3}\right )} d^{3} x^{4} + \frac {1}{3} \, {\left (7 \, b^{3} c + 12 \, a b c^{2}\right )} d^{3} x^{3} + \frac {1}{2} \, {\left (b^{4} + 6 \, a b^{2} c\right )} d^{3} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^3*(c*x^2+b*x+a),x, algorithm="maxima")

[Out]

4/3*c^4*d^3*x^6 + 4*b*c^3*d^3*x^5 + a*b^3*d^3*x + 1/2*(9*b^2*c^2 + 4*a*c^3)*d^3*x^4 + 1/3*(7*b^3*c + 12*a*b*c^
2)*d^3*x^3 + 1/2*(b^4 + 6*a*b^2*c)*d^3*x^2

________________________________________________________________________________________

mupad [B]  time = 0.42, size = 93, normalized size = 2.07 \begin {gather*} \frac {4\,c^4\,d^3\,x^6}{3}+\frac {b^2\,d^3\,x^2\,\left (b^2+6\,a\,c\right )}{2}+4\,b\,c^3\,d^3\,x^5+\frac {c^2\,d^3\,x^4\,\left (9\,b^2+4\,a\,c\right )}{2}+a\,b^3\,d^3\,x+\frac {b\,c\,d^3\,x^3\,\left (7\,b^2+12\,a\,c\right )}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*d + 2*c*d*x)^3*(a + b*x + c*x^2),x)

[Out]

(4*c^4*d^3*x^6)/3 + (b^2*d^3*x^2*(6*a*c + b^2))/2 + 4*b*c^3*d^3*x^5 + (c^2*d^3*x^4*(4*a*c + 9*b^2))/2 + a*b^3*
d^3*x + (b*c*d^3*x^3*(12*a*c + 7*b^2))/3

________________________________________________________________________________________

sympy [B]  time = 0.09, size = 114, normalized size = 2.53 \begin {gather*} a b^{3} d^{3} x + 4 b c^{3} d^{3} x^{5} + \frac {4 c^{4} d^{3} x^{6}}{3} + x^{4} \left (2 a c^{3} d^{3} + \frac {9 b^{2} c^{2} d^{3}}{2}\right ) + x^{3} \left (4 a b c^{2} d^{3} + \frac {7 b^{3} c d^{3}}{3}\right ) + x^{2} \left (3 a b^{2} c d^{3} + \frac {b^{4} d^{3}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)**3*(c*x**2+b*x+a),x)

[Out]

a*b**3*d**3*x + 4*b*c**3*d**3*x**5 + 4*c**4*d**3*x**6/3 + x**4*(2*a*c**3*d**3 + 9*b**2*c**2*d**3/2) + x**3*(4*
a*b*c**2*d**3 + 7*b**3*c*d**3/3) + x**2*(3*a*b**2*c*d**3 + b**4*d**3/2)

________________________________________________________________________________________